xcopy ..\Res ..\Bin\Debug /e /y
C:\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin\windeployqt.exe ..\Bin\Debug\NtfsParse.exe

@echo off
:: Check if the script is already running as administrator
>nul 2>&1 "%SYSTEMROOT%\System32\cacls.exe" "%SYSTEMROOT%\System32\config\system"
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto AdminRights )

:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B

:AdminRights
:: Run your program with administrative privileges
echo Running your program with administrative privileges...
start "" "D:\zengxiangying\Project\NtfsParse\Bin\Debug\NtfsParse.exe"

